<div class="slier">
    <div class="container">
        <div class="row">
            <div class="span12 slider no_margin_left pull-right">
                <div class="slider-wrapper theme-default">
                    <div id="myslider" class="nivoSlider">
                        <?php
                        foreach ($sdata as $photo => $name) {
                            ?>
                            <img src="<?php echo base_url() . "uploads/" . $photo ?>" data-thumb="<?php echo base_url() . "uploads/" . $photo ?>" alt="" title="<?php echo $name ?>" />
                        <?php } ?>
                    </div>
                </div>
                
                <link rel="stylesheet" href="<?php echo base_url(); ?>assets/theme/js/nivo-slider/themes/default/default.css" type="text/css" media="screen" />
                <link rel="stylesheet" href="<?php echo base_url(); ?>assets/theme/js/nivo-slider/nivo-slider.css"/>
                <script type="text/javascript" src="<?php echo base_url() ?>assets/theme/js/nivo-slider/jquery.nivo.slider.pack.js"></script>
                <script type="text/javascript">
                    $(window).load(function() {
                        $('#myslider').nivoSlider();
                    });
                </script>
            </div>
        </div>
    </div>
</div>